import Vue from 'vue'
import Vuex from 'vuex'
import IndexStroe from './IndexStore'
import MenuStore from './MenuStore'
import RoleStore from './RoleStore'
import AdminStore from './AdminStore'
import PointsStore from './PointsStore'
import RulesStore from './RulesStore'
import GoodsStore from './GoodsStore'
import LeftStore  from './LeftStore'
Vue.use(Vuex)

export default new Vuex.Store({
  modules:{
    IndexStroe, //对象是键值对儿，但是当值于名一致时，可用一个
    MenuStore,
    RoleStore,
    AdminStore,
    PointsStore,
    RulesStore,
    GoodsStore,
    LeftStore
  } 
})
